package com.zhiyou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.mapper.VacateMapper;
import com.zhiyou.model.Vacate;
import com.zhiyou.service.VacateService;
@Service
public class VacateServiceImpl implements VacateService{

	@Autowired
	VacateMapper vacateMapper;
	@Override
	public void add(Vacate vacate) {
		vacateMapper.add(vacate);
	}

	@Override
	public List<Vacate> selectBySt_id(int id, int statue_id) {
		return vacateMapper.selectBySt_id(id, statue_id);
	}

	@Override
	public Vacate selectById(int id) {
		return vacateMapper.selectById(id);
	}

	@Override
	public List<Vacate> selectAll() {
		return vacateMapper.selectAll();
	}

	@Override
	public List<Vacate> selectAllClass_id(int class_id, int vacate_type, int statue_id) {
		return vacateMapper.selectAllClass_id(class_id, vacate_type, statue_id);
	}

	@Override
	public void update(Vacate vacate) {
		vacateMapper.update(vacate);
		
	}

	@Override
	public void delete(int id) {
		vacateMapper.delete(id);
	}

	@Override
	public void deleteAll(int[] ids) {
		vacateMapper.deleteAll(ids);
	}

}
